package ModelLayer;


/**
 * Write a description of class Rent here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Rent
{
    // instance variables
    private int id;
    private String rentDate;
    private double rentPeriod;
    private boolean status;
    private Copy myCopy;
    private Person myPerson;

    /**
     * Constructor for objects of class Rent
     */
    public Rent(int id, String rentDate, double rentPeriod) //Copy myCopy, Person myPerson)
    {
        
        this.id = id;
        this.rentDate = rentDate;
        this.rentPeriod = rentPeriod;
        status = true;
        this.myCopy = myCopy;
        this.myPerson = myPerson;
        
    }

    /**
     * Returns rental id
     */
    public int getId()
    {
        return id;
    }
    
    /**
     * Set a new rental id
     */
    public void setId(int i)
    {
        i = id;
    }

    /**
     * Show the date the rental was created
     */
    public String getRentDate()
    {
        return rentDate;
    }
    /**
     * Set a new rent date
     */
    public void setRentDate(String rd)
    {
        rd = rentDate;
    }
    
    /**
     * Show rental period
     */
    public double getRentPeriod()
    {
        return rentPeriod;
    }
    /**
     * Set a new rental period
     */
    public void setRentPeriod(double rp)
    {
        rp = rentPeriod;
    }
    
    /**
     * Returns status of this rent
     */
    public boolean getStatus()
    {
        return status;
    }
    /**
     * Change the status of this rental
     */
    public void setStatus(boolean state)
    {
        status = state;
    }
    
    /**
     * Show which DVD this copy is of.
     */
    public Copy showCopy()
    {
        return myCopy;
    }
    /**
     * Show Person reference.
     */
    public Person showPerson()
    {
        return myPerson;
    }
}